<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>全球冠状病毒实时统计</title>
    <link rel="stylesheet" href="/css/style.css">
</head>
</head>
<body>

<div align="center">
    <form th:action="@{/query}" method="post" >
        <input name="country"  placeholder="输入查询的国家/地区名">

        <input type="submit" class="search-button" value="查询">
    </form>
</div>
<div align="center">
    <table id="hor-minimalist-a">
        <tr>
            <th>国家/地区</th>
            <th>州/省</th>
            <th>确诊人数</th>
            <th>新增确诊人数</th>
        </tr>
        <tr th:each="list:${data}">
            <th th:text="${list.country}"></th>
            <th th:text="${list.state}"></th>
            <th th:text="${list.currentNum}"></th>
            <th th:text="${list.newCases}"></th>
        </tr>
    </table>
</div>

</body>
</html>

